package com.foton.mybatis.handler;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @Author RenPu
 * @Date 2023/3/30 11:41
 * @Version 1.0
 * @Description:
 **/
public interface StatementHandler {

    PreparedStatement prepare(Connection connection);

    ResultSet query(PreparedStatement preparedStatement)throws SQLException;

    void update(PreparedStatement preparedStatement) throws SQLException;
}
